<form action="" method="post" enctype="multipart/form-data"><div>

<? if (sizeof($DIAGS)) { ?>
	<div class="diags"><?=implode("", $DIAGS)?></div>
<? } ?>


<h3>Name: <strong><?=dat('object', 'name')?></strong></h3>
<h3>E-mail: <strong><?=dat('object', 'e-mail')?></strong></h3>
<h4>Submit date: <strong><?=dat('object', 'date_visible')?></strong></h4>

<p><?
	if (dat('object', 'auth')) {
		if (dat('object', 'auth', 'attr') & U_ENABLED) {
			?><input type="submit" name="user_disable" value="Disable user account" /><?
			?><input type="submit" name="user_kill" value="Delete user account" /><?
		} else {
			?><input type="submit" name="user_enable" value="Enable user account" /><?
			?><input type="submit" name="user_kill" value="Delete user account" /><?
		}
	} else {
		?><input type="submit" name="user_create" value="Create user account" /><?
	}
?></p>

<fieldset>
	<legend> Record data </legend><?

	if (sizeof($d = (array)dat('object', 'data'))) { ?><dl><?
		
		foreach($d as $id => $v) {
			?><dt><?=$id?></dt><dd><?=$v?></dd><?
		}
		
	?></dl><? }

?></fieldset>

</div></form>
